<?php
/**
 * User:于小涛
 * Date:2020/2/16
 * Time:17:12
 */
namespace app\api\model\promotion;
use think\Model;

class SignRecord extends Model{
    protected $name='sign_record';
    public function add($arr_data){
        $str_time=date("Y-m-d H:i:s");
        $arr_data['create_time'] = $str_time;
        $arr_data['modify_time'] = $str_time;
        return $this->insert($arr_data);
    }
    public function edit($int_id,$arr_edit){
        $str_time=date("Y-m-d H:i:s");
        $arr_edit['modify_time'] = $str_time;
        return $this->where('id',$int_id)->update($arr_edit);
    }
}